import {getCityAll} from '@/services'

import { defineStore } from "pinia"
const useCityStore = defineStore("city", {
	state: () => ({
		allCities: {},
		currentCity: "广州"
	}),
	actions: {
		async fetchAllCitiesData() {
			const res = await getCityAll()
			this.allCities = res.data
		}
	}
})
export default useCityStore
